<template>
  <div class="PDFCOM">
    <ShowPptx
      :src="getSrc()"
    ></ShowPptx>
  </div>
</template>

<script>
import {CommonPropsMixin} from "@/views/dashboard/CommonPropsMixin";
import fileReq from "@/api/file.js";
import pathBrowserify from "path-browserify";
import ShowPptx from "@/components/WPS/ShowPptx.vue";

export default {
  name: "PPTXCOM",
  components: {ShowPptx},
  mixins: [CommonPropsMixin],
  data() {
    return {
    }
  },
  methods: {
    getSrc() {
      return fileReq.getFileUrl(pathBrowserify.resolve(this.baseFilePath,this.openFile))
    },
  }
}
</script>

<style lang="scss" scoped>
.PDFCOM{
  height: 70vh;
  overflow: auto;
}
</style>
